package com.ruoyi.common.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class SyncConstants {

    //public static final String BASE_URL="http://172.23.99.21:10018"; //测试
    //public static final String BASE_URL = "http://172.23.99.22:10010";//预发布版本
    //public static final String AUTH_URL = "http://172.23.99.22:8090/auth";//测试认证地址

    public static String BASE_URL;
    public static String AUTH_URL;

    @Value("${nanShan.BASE_URL}")
    public String baseUrl;
    @Value("${nanShan.AUTH_URL}")
    public String authUrl;

    @PostConstruct
    public void init() {
        BASE_URL = baseUrl;
        AUTH_URL = authUrl;
    }

    public static final String WEAVEREPORT_ZJ_URL = "/workshop/weavereport/v1/zj/addWorkReport";
    public static final String WEAVEREPORT_JS_URL = "/workshop/weavereport/v1/js/addWorkReport";
    public static final String WEAVEREPORT_SZ_URL = "/workshop/weavereport/v1/sz/addWorkReport";
    public static final String WEAVEREPORT_KZ_URL = "/workshop/weavereport/v1/kz/addWorkReport";
    public static final String WEAVEREPORT_XJ_URL = "/workshop/weavereport/v1/xj/addWorkReport";
    public static final String WEAVEREPORT_CZ_URL = "/workshop/weavereport/v1/cz/addWorkReport";
    public static final String WEAVEREPORT_LB_URL = "/workshop/weavereport/v1/lb/addWorkReport";
    public static final String WEAVEREPORT_JJ_URL = "/workshop/weavereport/v1/jj/addWorkReport";
    public static final String WEAVEREPORT_XB_URL = "/workshop/weavereport/v1/xb/addWorkReport";
    public static final String WEAVEREPORT_ZBCL_URL = "/workshop/weavereport/v1/add/output";
    public static final String WEAVEREPORT_TZ_RECORD_URL = "/workshop/weavereport/v1/add/shearShaft";
    public static final String JTJK_CLBB_GET_URL = "http://172.20.238.100:8088/onlineapi/third/getDcgClList";

}
